package com.xx.happychatboot.middleware.kaptcha.service;

import com.google.code.kaptcha.Producer;
import com.xx.happychatboot.base.vo.response.ResponseDate;

import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.io.IOException;

public interface KaptchaService {

    /**
     * 前后端分离获取验证码
     *
     * @param response
     * @param session
     * @param producer
     * @return
     */
    ResponseDate getVerifyCode(HttpServletResponse response, HttpSession session, Producer producer) throws IOException;
}
